[VTPM] VTPM manager -- Fix parameter check
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 18 Sep 2007 14:06:20 +0000 (15:06 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 18 Sep 2007 14:06:20 +0000 (15:06 +0100)
commit3edb495707c66d2c7f7702691399dd4671ef1aa0
tree9b7cbaa76affa7aa40a7cb6c8fef6c06938fcebd
parent4c66249d515812c6ec187bc906d160cc53cad740
[VTPM] VTPM manager -- Fix parameter check

If vtpm_managed is started with the same vtpm instance, the following
error occurs.

++++++++++++
 Loading NVM.
         Sending LoadNVM command
 INFO[VTSP]: Unbinding 256 bytes of data.
 ERROR in VTSP_Unbind at vtsp.c:719 code: TPM_BAD_PARAMETER.
 ERROR in envelope_decrypt at securestorage.c:156
 code:TPM_BAD_PARAMETER.
 ERROR[VTPM]: Failed to envelope decrypt data
 .ERROR in VTPM_Handle_Load_NVM at securestorage.c:284 code:
 TPM_BAD_PARAMETER.
 ERROR[VTPM]: Failed to load NVM
 .INFO[VTPM]: [VTPM Listener]: VTPM Listener waiting for messages.
         Reading LoadNVM header
++++++++++++

Signed-off-by: Kouichi YASAKI <yasaki.kouichi@jp.fujitsu.com>
tools/vtpm_manager/tcs/tcs.c